package org.dromara.system.domain.bo;

import org.dromara.system.domain.WbOperatingProductsList;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 各公司经营产品业务对象 wb_operating_products_list
 *
 * @author Lion Li
 * @date 2024-06-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = WbOperatingProductsList.class, reverseConvertGenerate = false)
public class WbOperatingProductsListBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 公司ID
     */
    @NotNull(message = "公司ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long companyId;

    /**
     * 产品名称
     */
    @NotBlank(message = "产品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String productName;


}
